package com.ruoyi.stuinfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stuinfo.mapper.AcademicInfoMapper;
import com.ruoyi.stuinfo.domain.AcademicInfo;
import com.ruoyi.stuinfo.service.IAcademicInfoService;

/**
 * 学业情况Service业务层处理
 *
 * @author zc
 * @date 2025-05-18
 */
@Service
public class AcademicInfoServiceImpl implements IAcademicInfoService
{
    @Autowired
    private AcademicInfoMapper academicInfoMapper;

    /**
     * 查询学业情况
     *
     * @param serialNumber 学业情况主键
     * @return 学业情况
     */
    @Override
    public AcademicInfo selectAcademicInfoBySerialNumber(Long serialNumber)
    {
        return academicInfoMapper.selectAcademicInfoBySerialNumber(serialNumber);
    }

    /**
     * 查询学业情况列表
     *
     * @param academicInfo 学业情况
     * @return 学业情况
     */
    @Override
    public List<AcademicInfo> selectAcademicInfoList(AcademicInfo academicInfo)
    {
        return academicInfoMapper.selectAcademicInfoList(academicInfo);
    }

    /**
     * 新增学业情况
     *
     * @param academicInfo 学业情况
     * @return 结果
     */
    @Override
    public int insertAcademicInfo(AcademicInfo academicInfo)
    {
        return academicInfoMapper.insertAcademicInfo(academicInfo);
    }

    /**
     * 修改学业情况
     *
     * @param academicInfo 学业情况
     * @return 结果
     */
    @Override
    public int updateAcademicInfo(AcademicInfo academicInfo)
    {
        return academicInfoMapper.updateAcademicInfo(academicInfo);
    }

    /**
     * 批量删除学业情况
     *
     * @param serialNumbers 需要删除的学业情况主键
     * @return 结果
     */
    @Override
    public int deleteAcademicInfoBySerialNumbers(Long[] serialNumbers)
    {
        return academicInfoMapper.deleteAcademicInfoBySerialNumbers(serialNumbers);
    }

    /**
     * 删除学业情况信息
     *
     * @param serialNumber 学业情况主键
     * @return 结果
     */
    @Override
    public int deleteAcademicInfoBySerialNumber(Long serialNumber)
    {
        return academicInfoMapper.deleteAcademicInfoBySerialNumber(serialNumber);
    }

    @Override
    public List<AcademicInfo> selectAcademicInfoList_handteacher(String teacherId)
    {
        return academicInfoMapper.selectAcademicInfoList_handteacher(teacherId);
    }

    @Override
    public List<AcademicInfo> selectAcademicInfoList_Xiteacher(String teacherId) {
        return academicInfoMapper.selectAcademicInfoList_Xiteacher(teacherId);
    }

    @Override
    public int insertAcademicInfos(List<AcademicInfo> academicInfos) {
        return academicInfoMapper.insertAcademicInfos(academicInfos);
    }

}
